//
//  FirstViewController.m
//  页面布局讲解
//
//  Created by clz on 2019/9/8.
//  Copyright © 2019 clz. All rights reserved.
//

#import "FirstViewController.h"

@interface FirstViewController ()

@end

@implementation FirstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor=[UIColor yellowColor];
    
    
    NSLog(@"宽2 = %f;高2 = %f",self.view.frame.size.width,self.view.frame.size.height);
    
    NSLog(@"X2 = %f;Y2 = %f",self.view.frame.origin.x,self.view.frame.origin.y);
    
    UIView *view = [[UIView alloc]init];
    view.frame = CGRectMake(0,64, 100, 100);
    view.backgroundColor = [UIColor orangeColor];
    [self.view addSubview:view];

}


- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    
    NSLog(@"宽3 = %f;高3 = %f",self.view.frame.size.width,self.view.frame.size.height);
    
    NSLog(@"X3 = %f;Y3 = %f",self.view.frame.origin.x,self.view.frame.origin.y);
}



@end
